package com.wwdx.service.impl;

import com.wwdx.wechat.config.BaseWxConfig;
import com.wwdx.wechat.config.merchant.MerchantWxMpConfig;
import com.wwdx.wechat.handler.*;
import com.wwdx.wechat.handler.merchant.*;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author liguoliang
 * @date 2018/1/15 11:46
 */
@Service
public class MerchantWxService extends BaseWxService {

    @Resource
    private MerchantWxMpConfig merchantWxMpConfig;
    @Resource    
    private MerchantMsgHandler merchantMsgHandler;
    @Resource
    private MerchantUnsubscribeHandler merchantUnsubscribeHandler;
    @Resource
    private MerchantSubscribeHandler merchantSubscribeHandler;
    @Resource
    private MerchantScanHandler merchantScanHandler;
    @Resource
    private MerchantMenuHandler merchantMenuHandler;

    @Override
    protected BaseWxConfig getServerConfig() {
        return merchantWxMpConfig;
    }

    @Override
    protected AbstractMenuHandler getMenuHandler() {
        return merchantMenuHandler;
    }

    @Override
    protected AbstractSubscribeHandler getSubscribeHandler() {
        return merchantSubscribeHandler;
    }

    @Override
    protected AbstractUnsubscribeHandler getUnsubscribeHandler() {
        return merchantUnsubscribeHandler;
    }

    @Override
    protected AbstractMsgHandler getMsgHandler() {
        return merchantMsgHandler;
    }

    @Override
    protected AbstractScanHandler getScanHandler() {
        return merchantScanHandler;
    }
}